<extend name="Public/header"/>
<block name="main">
<body class="bgeee">

    <div class="">
        <img src="__WEBPUBLIC__/Home/img/topbg.png"/>
    </div>
    <div class="pad10 texrig">
        <img src="__WEBPUBLIC__/Home/img/code.png" class="himg showcode" />
        <img src="__WEBPUBLIC__/Home/img/self.png" class="himg" linkto="{:U('Member/self')}"/>
    </div>

    <div class="pad0-10">
        <div class="ih30 colbbb"><span class="iconsan">模糊查找</span></div>
        <div class="weui-cell bgaaa borad4">
            <div class="weui-cell__hd">
                姓&nbsp;&nbsp;&nbsp;名
            </div>
            <div class="weui-cell__bd pad0-10">
                <input type="text" name="name" class="weui-input name">
            </div>
        </div>
        <div class="ih30 colbbb jingque"><span class="iconsan">精确查找</span></div>
        <div class="jingquediv disn">
            <div class="weui-cell bgaaa borad4">
                <div class="weui-cell__hd">
                    身份证
                </div>
                <div class="weui-cell__bd pad0-10">
                    <input type="text" name="name" class="weui-input cardid">
                </div>
            </div>

            <div class="ih30 colbbb"><span class="iconsan">仅限平台查询</span></div>
            <div class="weui-cell bgaaa borad4">
                <div class="weui-cell__hd">
                    手机号
                </div>
                <div class="weui-cell__bd pad0-10">
                    <input type="text" name="name" class="weui-input tel">
                </div>
            </div>
        </div>
        <div class="disfl texcen pad20-0">
            <div class="mebtn ih50 colfff bg00f borad4 getdata" gettype="contry">国家公告查询</div>
            <div class="mebtn ih50 bg00f colfff borad4 getdata" gettype="selfping">平台举报查询</div>
        </div>
        <div class="ih30 texcen">
            点击“查询”即表示您同意<a class="col00f" href="https://mp.weixin.qq.com/s/8Od3yvCofYDRqySqdVRpxA">《平台免责协议》</a>
            <p class="fs0-8 colbbb">copyright@神羊獬豸</p>
        </div>
    </div>

    <div class="footer-container texcen col00f bgfff ih40 baoguang">
        我要曝光
    </div>

    <div class="disn texcen imgarea" style="padding: 30px 40px;">
        <div>关注【查询老赖】微信公众号了解更多资讯</div>
        <img src="Public/Home/img/laolaicode.jpeg" style="height: 150px;">
        <div>扫一扫，马上关注</div>
    </div>
</body>
</block>
<block name="footerjs">
<script type="text/javascript">
layer.open({
    "title":false,
    "type":1,
    "area":["80%","300px"],
    "content":$(".imgarea")
});
$(".showcode").on("click",function() {
    layer.open({
        "title":false,
        "type":1,
        "area":["70%","auto"],
        "content":$(".imgarea")
    });
});

$(".jingque").on('click',function () {
   $(".jingquediv").slideToggle(); 
});
$(".baoguang").on('click',function () {
   layer.open({
    title: '注意'
    ,content: '为确保举报信息的真实合法，举报人必须为出借人本人！'
    ,btn: '确定'
    ,area:["70%","auto"]
    ,yes: function(index){
      location.href = "{:U('Jubao/addjubao')}";
    }
  }); 
});

$(".getdata").on('click',function () {
    var name = $(".name").val();
    var cardid = $(".cardid").val();
    var tel = $(".tel").val();
    var type = $(this).attr("gettype");
    if ( tel ) {
        if ( type != 'selfping' ) {
            layer.msg("手机号仅支持平台查询！");
            return;
        }
        if (/\d{11}/.test(tel)) {
            window.location.href = "{:U('Jubao/jubaolist')}/tel/"+tel;
        }else{
            layer.msg("请输入合法手机号！");
        }
    }else if( name ) {
        window.location.href = "{:U('Jubao/jubaolist')}/name/"+name+"/type/"+type+"/cardid/"+cardid;
    }else{
        layer.msg("请输入合法的姓名！");
    }
});
</script>
</block>